Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

A workaround...

I ran into the same problem with required fields on a Xpage form under the Tabbed Panel control. Here's a possible work-around:

First, turn off client-side validation. This is done in the Application Properties, XPages tab.

Next, set a flag on the server to check when you want to validate vs. when you don't.

I used the XPages' BeforePageLoad event and the following code:
sessionScope.validateForm="false";

Next, on the field you want to conditionally require, for the 'Required field' check box compute the value with the following Javascript:
sessionScope.validateForm;

Next, to enable the checking use the following code in your Submit button or some such event - be sure to put it right at the top so the validation happens before the rest:
sessionScope.validateForm="true";

I do whatever server actions I intend, then reset the value to false at the end:
sessionScope.validateForm="false";

I'm sure there is a better way but this is at least one possible solution.


Feedback response number WEBB7NYQTE created by ~Wendy Ekwether on 02/05/2009

xpages validation fighting with vie... (~Gus Chukikonyo... 4.Feb.09)
. . Partial update? (~Justin Zekaman... 4.Feb.09)
. . . . Tried both Partial Update and No da... (~Gus Chukikonyo... 4.Feb.09)
. . . . . . Looks like a bug - PMR opened *EOM*... (~Gus Chukikonyo... 4.Feb.09)
. . . . . . . . Lotus says "working as designed" (~Gus Chukikonyo... 5.Feb.09)
. . . . . . . . . . A workaround... (~Wendy Ekwether... 5.Feb.09)
. . . . . . . . . . . . Excellent Suggestions Ken (~Gus Chukikonyo... 7.Feb.09)
. . . . . . . . . . . . Great approach but I think there is... (~Ethan Umresaak... 8.Feb.09)
. . . . . . . . . . . . . . using addMessage in an XPage (~Delores Nonger... 4.Dec.09)
. . . . . . . . . . . . Possible solution (~Ben Quettumige... 11.Jun.09)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS